package com.dtx.flyweight;

/**
 * Main类比较简单,它根据接收到的参数生成并显示BigString类的实例,仅此而已。
 */
public class FlyweightMain {
    public static void main(String[] args) {
        args = new String[]{"1212123"};
        if (args.length == 0) {
            System.out.println("Usage: java Main digits");
            System.out.println("Example: java Main 1212123");
            System.exit(0);
        }

        BigString bs = new BigString(args[0]);
        bs.print();
    }
}
